package com.lizhenhua.timeoutcancel.feignClient;

import com.lizhenhua.fmmall.entity.Orders;
import com.lizhenhua.timeoutcancel.fallback.OrderTimeoutQueryFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "order-timeout-query",fallback = OrderTimeoutQueryFallBack.class)
public interface OrderTimeoutQueryClient {
    @GetMapping("order/query/timeout")
    public List<Orders> query();
}
